﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IHISCETeim.DAL;
using IHISCETeim.Model;
using IHISCETeim.Library;
using System.Data;

namespace IHISCETeim.BLL
{
    public  class MAgentAddressController
    {
        public static int Add(MAgentAddressInfo obj)
        {
            return MAgentAddressDAL.Add(obj);
        }
        public static bool Delete(int MAAID)
        {
            return MAgentAddressDAL.Delete(MAAID);
        }
        public static DataTable GetAllByCardCode(string CardCode)
        {
            return  MAgentAddressDAL.GetAllByCardCode(CardCode);
        }
        public static MAgentAddressInfo GetById(int MAAID)
        {
            return CBO.FillObject<MAgentAddressInfo>( MAgentAddressDAL.GetById(MAAID));
        }
        public static bool Update(MAgentAddressInfo obj)
        {
            return MAgentAddressDAL.Update(obj);
        }
    }
}
